package collection;

import java.util.HashSet;
import java.util.LinkedHashSet;
import java.util.Set;

public class SetDemo {
    public static void main(String[] args) {
        Set<Point> s = new LinkedHashSet<>();
        s.add(new Point(1,2));
        s.add(new Point(6,5));
        s.add(new Point(3,3));
        System.out.println(s);
        s.add(new Point(1,2));
        System.out.println(s);
        boolean b=s.add(new Point(4,3));
        System.out.println(b);
        System.out.println(s);
    }
}
